<div class="registration-container">

    <div class="registration-header">
        <div class="post-ad-header-text">
            Posting your ad is as easy as 1-2-3!
        </div>
        <div class="post-step-image">
            <%=image_tag "post-step3.jpg", :border=>0,:alt=>"Step 3 of 3" -%>
        </div>
    </div>
      <%if session[:existing_user]=="True"%>


          <%=render :partial=>"login"%>
  

          <%else%>

    <div class="registration-inner">
<%if @user.status==0 || (@user.mobile_no)!=''%>
  <%=render :partial=>"verification_box" -%>
  <%end -%>
        <div class="post-inner-details">
            Step 3: Create your account to manage your responses later.
        </div>
        <div class="registration-user-fields">


            <div class="registration-user-fields2">
                Manage Account
                </div>
                <div class="registration-user-fields">
                    <%=render :partial => "advertisments/user_field_item", :locals => {:user => @user, :field_name => "full_name", :label => "Name"} -%>
                    <%=render :partial => "advertisments/user_field_item", :locals => {:user => @user, :field_name => "email"} -%>
                    <%=render :partial => "advertisments/user_field_item", :locals => {:user => @user, :field_name => "mobile_no"} -%>
                </div>
            
        <div class="preview-edit-posted-ad">
        	<a href="">Preview Ad</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">Edit Ad</a>
        </div>
        <div class="registration-user-fields2">
        	Response Settings
        </div>
              <%form_for :advertisment, @advertisment, :url => {:controller => "advertisments",  :action => "post_free_ad" ,:step=>4} , :html => { :multipart => true } do |form| %>

        <div class="registration-user-fields">
            <div class="registration-field-text">
            	Receive responses by:
            </div>
            <div class="registration-field-value">
           		<div class="ad-details-input-box-2">
                	<%=check_box(:user, :contact_by_phone, {}, "1", "0") -%>&nbsp;SMS
            	</div>
                <div class="ad-details-input-box-2">
                	<%=check_box(:user, :contact_by_email, {}, "1", "0") -%>&nbsp;Email
            	</div>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	Also Interested In:
            </div>
            <div class="registration-field-value">
           		<div class="ad-details-input-box-2">
                	<%=check_box_tag("interests[#{"Jobs"}]", "Jobs") -%>&nbsp;Jobs
            	</div>
                <div class="ad-details-input-box-2">
                	<%=check_box_tag("interests[#{"Housing"}]", "Housing") -%>&nbsp;Housing
            	</div>
                <div class="ad-details-input-box-2">
                	<%=check_box_tag("interests[#{"Coaching"}]", "Coaching") -%>&nbsp;Coaching
            	</div>
                <div class="ad-details-input-box-2">
                	<%=check_box_tag("interests[#{"Transport"}]", "Transport") -%>&nbsp;Transport
            	</div>
                <div class="ad-details-input-box-2">
                	<%=check_box_tag("interests[#{"Books"}]", "Books") -%>&nbsp;Books
            	</div>
                <div class="ad-details-input-box-2">
                	<%=check_box_tag("interests[#{"Gadgets"}]", "Gadgets") -%>&nbsp;Gadgets
            	</div>
                <div class="ad-details-input-box-2">
                	<%=check_box_tag("interests[#{"Events"}]", "Events") -%>&nbsp;Events
            	</div>
            </div>
   		</div>
        <div class="registration-user-subscription">
          <%=check_box(:user, :recieve_third_party_mails, {}, "1", "0") -%>Send me mails from 3rd party advertisers on SearchMyCampus.com<br/>
          <%=check_box(:user, :recieve_smc_mails, {}, "1", "0") -%>Send me mails about SearchMyCampus.com and new features
        </div>

        <div class="registration-user-fields2">
        	Create a User Account to Edit or Delete your ads and view responses
        </div>
         <div class="registration-user-fields">
            <div class="registration-field-text">
            	*Login E-mail:
            </div>
            <div class="registration-field-value">
            	<%=text_field :user, :name ,:size => 40,:value=>params[:email],:class=>"input-box", :maxlength=>"40" -%>

            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*Password:
            </div>
            <div class="registration-field-value">
            	<%=password_field :password, :original ,:size => 40,:class=>"input-box", :maxlength=>"40" -%>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*Confirm Password:
            </div>
            <div class="registration-field-value">
              <%=password_field :password, :confirm ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
        </div>

        <div class="registration-button">
            <%=image_submit_tag("post-ad-button.jpg")%>
           <%=hidden_field_tag(:user_id,@user.id) -%>
       </div>
        <div class="regitration-proceed">
            * required
        </div>
    </div>
      <%end%>
    <%end -%>
</div>
